Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.

Conversation

@whwgeorge
Copy link

Creates a modified copy of https://github.com/kleros/kleros-attacks/blob/master/contracts/p-epsilon.sol so that the bribe is only paid to jurors in the round max(maxAppeals, appeals). If maxAppeals is set to be the maximal number of appeals of the court, then this attack will pay out only in the decisive round of the court.

Modifies https://github.com/kleros/kleros-attacks/blob/master/contracts/p-epsilon.sol so that the bribe is only paid to jurors in the round max(maxAppeals, appeals). If maxAppeals is set to be the maximal number of appeals of the court, then this attack will pay out only in the decisive round of the court.
@epiqueras
Copy link

@whwgeorge
Wouldn't it be better to inherit the original contract?

@whwgeorge
Copy link
Author

The original contract has a for loop that loops over appeal rounds - this just pulled out the last round of that loop. Maybe we could have had a common contract that did the attack one loop at a time that both called. Feel free to make alternative suggestions.

@epiqueras
Copy link

You can inherit that and override the function you are changing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants